/** 站点信息 **/

export default {
  namespaced: true,
  state: {
    website: {}
  },
  mutations: {
    SETINFO(state, info) {
      state.website = info
    }
  },
  getters: {
    // 当前有效域名
    effectiveDomain(state) {
      return state.website.effective_domain
    }
  },
  actions: {
    setInfo({ commit }, data) {
      commit('SETINFO', data)
    }
  }
}
